package com.gaofeng.day20;

import java.util.ArrayList;
import java.util.Collections;

public class demo2 {
    public static void main(String[] args) {


        ArrayList<String> list = new ArrayList<>();

        Collections.addAll(list,"a","b","c","d","e");

        System.out.println(list);

        Collections.shuffle(list);
        System.out.println(list);
        ArrayList<Integer> nums = new ArrayList<>();
        Collections.addAll(nums,1,2,3,4,5,6,7,8);
        int min = Collections.max(nums);
        System.out.println(min);

    }
}
